using System;

namespace cuberga.Workflow
{
    public class LogSubscriber: ISubscriber
    {
        public void Update(IPublisher publisher)
        {
            if (publisher.GetState() == null)
            {
                Console.WriteLine("log {0}", publisher.GetType());
            }
            else
            {
                string strCoreType = publisher.GetState().ToString();
                Console.WriteLine("log {0}", strCoreType);
            }
            
        }
    }
}
